package com.ruoyi.project.person.dept.service.impl;

import com.ruoyi.common.utils.security.ShiroUtils;
import com.ruoyi.project.cms.content.mapper.ContentMapper;
import com.ruoyi.project.cms.type.domain.CmsType;
import com.ruoyi.project.person.dept.domain.PersonDept;
import com.ruoyi.project.person.dept.mapper.PersonDeptMapper;
import com.ruoyi.project.person.dept.service.IPersonDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program:
 * @auther 草莓酸奶~
 * @date 2020-09-20-15:26
 * @description:
 */
@Service
public class PersonDeptServiceImpl  implements IPersonDeptService {
    @Autowired
    private PersonDeptMapper personDeptMapper;
    @Override
    public List<PersonDept> selectPersonDeptList(PersonDept personDept) {
        return personDeptMapper.selectPersonDeptList(personDept);
    }

    @Override
    public int insertPersonDept(PersonDept personDept) {
        return personDeptMapper.insertPersonDept(personDept);
    }

    @Override
    public PersonDept checkDeptNameUnique(String typeName) {
        return null;
    }

    @Override
    public PersonDept selectDeptById(Long typeId) {

        return personDeptMapper.selectDeptById(typeId);
    }

    @Override
    public int updatePersonDept(PersonDept personDept) {
        return personDeptMapper.updatePersonDept(personDept);
    }

    @Override
    public int removePersonDeptById(Long[] ids) {
        return personDeptMapper.removePersonDeptById(ids);
    }
}
